<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	console.log(sessionStorage.getItem("userName"));
	console.log(sessionStorage.getItem("age"));
	console.log(sessionStorage.getItem("sex"));
	
	console.log(sessionStorage.userName);
	console.log(sessionStorage.age);
	console.log(sessionStorage.sex);
	console.log(sessionStorage["userName"]);
	console.log(sessionStorage["age"]);
	console.log(sessionStorage["sex"]);
</script>
</html>